//
//  YBNormalTreeModel.h
//  GongXinDangJian
//
//  Created by apple on 17/12/12.
//  Copyright © 2017年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>
@class YBNormalTreeModel;

@interface YBNormalTreeModel : NSObject
@property (nonatomic,copy) NSString *name;//标题

@property (nonatomic , strong) NSString * ID;

@property (nonatomic,strong) NSMutableArray<YBNormalTreeModel *> *children;//子节点数组

@property (nonatomic , assign) BOOL isOpen;

@property (nonatomic , assign) BOOL isSelect;

@property (nonatomic , assign) CGFloat titleHeight;

//初始化一个model
- (id)initWithName:(NSString *)name children:(NSArray *)array;

//遍历构造器
+ (id)dataObjectWithName:(NSString *)name children:(NSArray *)children;

@end
